<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>

<html>

 <head>
    
    <title>其他入库管理</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>

		<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
    	<script type="text/javascript" src="${ctx}/js/jsp/xxkj/logic/otherinwh.js"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/logic/otherInwh";
		var basic_WUrl="logic/otherInwh";
		var basic_Title="其他入库管理";
		var show_Width=950;
		var show_Hight=400;
		var user='${user.name}';
		function createSearch(){
			init(1,8,'100,100,100,100,100,100,100,100','25%');
			//第一行的数据
			addCommon(0,0,"lable","入库单号");
			addCommon(0,1,"txtlike","zd001InCode");
			addCommon(0,2,"lable","入库仓库：");
			addCommon(0,3,"selectEnum","zd004WhCode","<option></option><c:forEach var="s" items="${wh}"><option value='${s.zd002Code}'>${s.zd003Name}</option></c:forEach>");
			addCommon(0,4,"lable","制单人");
			addCommon(0,5,"txtlike","zd006Aegnt");
			addCommon(0,6,"lable","单据状态：");
			addCommon(0,7,"selectEnum","zd003BillStatus","<option></option><option value='OTHERWH_SAVE'>草稿</option>"+
					"<option value='OTHERWH_AUDIT'>审批中</option><option value='OTHERWH_END'>完成</option><option value='OTHERWH_BACK'>驳回</option>");
			init(1,8,'100,100,100,100,100,100,100,100','25%');
			addCommon(1,0,"lable","PI编号");
			addCommon(1,1,"txtlike","zd005PiCode");
			addCommon(1,2,"lable","送货单号");
			addCommon(1,3,"txtlike","zd012MaterialInCode");
			addCommon(1,4,"lable","客户");
			addCommon(1,5,"txtlike","zd013AccountName");
			addCommon(1,6,"lable","供应商");
			addCommon(1,7,"txtlike","zd011CustomerName");
			init(2,8,'100,100,100,100,100,100,100,100','25%');
			addCommon(2,0,"lable","备注");
			addCommon(2,1,"txtlike","zd007Remark");
			addCommon(2,2,"lable","入库开始时间");
			addCommon(2,3,"datestart","zd010OtherDate");
			addCommon(2,4,"lable","入库结束时间");
			addCommon(2,5,"dateend","zd010OtherDate");
		}
		function searchAP(){			
			multipleSearch("#table1",true,"",basic_Url+"/list.do");
		}
	  function excelExport(){
		   	var filtersStr = generateCondition();
		   	var path = "${ctx}/excel/otherInExcel.do"+encodeURI("?filters="+filtersStr+"&_search=true");;
			window.open(path,"_blank");
	  }
	</script>
  </head>
<body onload="createSearch()">
   <div id="layout1">
      <div position="top">
          <div class="panelBar">
	           <ul class="toolBar">
		           <li><a class="add" onclick="add()">
		           <span>添加</span></a></li>
				   <li><a class="delete" onclick="checkdel()"><span>删除</span></a></li>
               </ul>
          </div>
          <div id="pageHeader" class="pageHeader">
               <div class="searchBar" id="multipleSearchDialog">
	                <table class="table" width="100%" id="searchHeader" >  
                        <tbody id="newbody">
                        </tbody>
 	                </table>
                    <div class="subBar">
			             <ul>
			             	<li><a class="button" onclick="excelExport()"><span>导出</span></a></li>
				             <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSearch" onclick="searchAP()">查询</button></div></div></li>
				             <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
			             </ul>
	                </div>
               </div>
          </div>
      </div>
      <div position="center" id="table1">
      </div>
      <div class="clear"></div>
   </div>
 
</body>
</html>